<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            
            <section class="content">
                
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title"><a style="color:#333;" href="__APP__/console/reservation/p/{$Think.get.p}">订单列表</a></h3> - <h3 class="box-title">订单编辑</h3>
                        <h4 class="box-title" id="notice" style="margin-left:50px; color:#f00; display:none;"></h4>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
                        <div class="box-body">
                        	<div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" readonly="true" value="{$result.name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">封面</label>
                                <div class="col-sm-10">
                                	<notempty name="result.cover">
                                	<img src="{$result.new_cover}" width="150"/>
                                    </notempty>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">描述</label>
                                <div class="col-sm-10">
                                	<textarea class="form-control" rows="2" readonly="true" style="resize:none;">{$result.dep}</textarea>
                                </div>
                            </div>
                           	<div class="form-group">
                                <label for="textarea" class="col-sm-2 control-label">内容</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" rows="12" id="content" readonly="true" placeholder="内容" style="resize:none;">{$result.content}</textarea>
                                </div>
                            </div> 
                            <div class="form-group">
                                <label for="textarea" class="col-sm-2 control-label">星级</label>
                                <div class="col-sm-10">
                                	<input type="text" class="form-control" readonly="true" value="{$result.star}星">
                                </div>
                            </div>
							<div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">价格</label>
                                <div class="col-sm-10">
                                    <input type="number" class="form-control" readonly="true" value="{$result.project_price}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">下单时间</label>
                                <div class="col-sm-10">
                                	<input type="text" class="form-control" readonly="true" value="{$result.ctime}">
                                </div>
                            </div>
                            <div class="form-group">
                            	<label for="textarea" class="col-sm-2 control-label">订单状态</label>
                                <div class="col-sm-10">
                                    <div class="checkbox" id="status" rel-status="{$result.status}">
                                        <label style="padding-left:0;">
                                            <input type="radio" name="status" value="0"> 已取消 &nbsp;&nbsp;&nbsp;
                                        </label>
                                        <label>
                                            <input type="radio" name="status" value="1"> 未付款 &nbsp;&nbsp;&nbsp;
                                        </label>
                                        <label>
                                            <input type="radio" name="status" value="2"> 已付款 &nbsp;&nbsp;&nbsp;
                                        </label>
                                        <label>
                                            <input type="radio" name="status" value="3"> 已完成 &nbsp;&nbsp;&nbsp;
                                        </label>
                                    </div>
                                </div>
                            </div>
                            
                            
                            <div class="form-group">
                            	<label for="textarea" class="col-sm-2 control-label">付款状态</label>
                                <div class="col-sm-10">
                                    <div class="checkbox" id="pay-status" rel-pay-status="{$result.pay_status}">
                                        <label style="padding-left:0;">
                                            <input type="radio" name="pay_status" value="0"> 未付款 &nbsp;&nbsp;&nbsp;
                                        </label>
                                        <label>
                                            <input type="radio" name="pay_status" value="1"> 已付款 &nbsp;&nbsp;&nbsp;
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">付款时间</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control datepicker" name="pay_time" value="{$result.pay_time}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">付款方式</label>
                                <div class="col-sm-10">
                                	<div class="checkbox" id="pay-type" rel-pay-type="{$result.pay_type}">
                                        <label style="padding-left:0;">
                                            <input type="radio" name="pay_type" value="0"> 未付款 &nbsp;&nbsp;&nbsp;
                                        </label>
                                        <label>
                                            <input type="radio" name="pay_type" value="7"> 微信 &nbsp;&nbsp;&nbsp;
                                        </label>
                                    </div>
                                </div>
                            </div>
                            
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-primary" style="margin-left:173px;">编辑</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />


<link rel="stylesheet" href="../Public/js/plugin/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="../Public/js/plugin/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="../Public/js/plugin/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
    editor = K.create('textarea#content', {
        resizeType : 1,
        items : [
            'fontsize', 'formatblock', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
            '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            'insertunorderedlist', '|', 'table', '|', 'link', 'unlink', 'image', '|', 'source']
        
    });
	ob = $('iframe.ke-edit-iframe').contents().find("body");
	ob.css('background-color','#eeeeee');
});

$(function(){
	zhi = "";
	zhi = $("#status").attr("rel-status");
	$("input[name=status][value="+zhi+"]").attr("checked",true);
	
	zhi = "";
	zhi = $("#pay-status").attr("rel-pay-status");
	$("input[name=pay_status][value="+zhi+"]").attr("checked",true);
	
	zhi = "";
	zhi = $("#pay-type").attr("rel-pay-type");
	$("input[name=pay_type][value="+zhi+"]").attr("checked",true);
})
</script>


</body>

</html>
